<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%-- 用于演示国际化问题的jsp1 --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
</head>
<body>

<fmt:message key="i18n.user"></fmt:message>

<br><br>
<a href="/i18n2">I18N2 PAGE</a>

<br><br>
<%-- 实现超链接切换 Locale, 而不再依赖于浏览器的语言设置情况,注意参数写法 --%>
<a href="i18n?locale=zh_CH">中文</a>

<br><br>
<a href="i18n?locale=en_US">英文</a>

</body>
</html>